home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 February
/
PCWorld_2000-02_cd.bin
/
Software
/
Vyzkuste
/
xsetup
/
_SETUP.2
/
Group3
/
XQ Media Folders.xpl
< prev
next >
Wrap
Text File
|
1999-09-25
|
2KB
|
72 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="4"
"COUNT"="5"
"UIPATH"="System\File System\Folders: Data"
"NAME"="Media Folders"
"VERSION"="1.22"
"LANGUAGE"="VBScript"
"TEXT 1"="Media Files Root"
"TEXT 2"="My Media"
"TEXT 3"="Graphics"
"TEXT 4"="Web Graphics"
"TEXT 5"="My Pictures"
"DESCRIPTION 1"=""Media Files Root" specifies the root folder for all types of media files."
"DESCRIPTION 2"=""My Media" specifies where you normally save your media files."
"DESCRIPTION 3"=""Graphics" specifies where your graphics are saved (*.BMP, *.PNG and so on)."
"DESCRIPTION 4"=""Web Graphics" specifies where you save your work that is somehow related with the Internet."
"DESCRIPTION 5"=""My Pictures" is a generic path for pictures."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
"COMMENT 2"="Thanks to CptSiskoX for his help!"
Sub Plugin_Initialize
' if RegPathExists("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\") then
s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\@")
SetUIElement 1,s
s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\MyMediaPath")
SetUIElement 2,s
s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GraphicsPath")
SetUIElement 3,s
s=RegReadValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GrWebPath")
SetUIElement 4,s
s=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\My Pictures")
SetUIElement 5,s
' else
' Disable
' end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
s=GetUIElement(1)
Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\@",s,1)
s=GetUIElement(2)
Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\MyMediaPath",s,1)
s=GetUIElement(3)
Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GraphicsPath",s,1)
s=GetUIElement(4)
Call RegWriteValue("HKLM\Software\Microsoft\Windows\CurrentVersion\MMFiles\GrWebPath",s,1)
s=GetUIElement(5)
Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\My Pictures",s,1)
End Sub
Sub Plugin_Terminate
End Sub